package dk.simonvogensen.itodo.client;

import com.google.gwt.user.client.ui.Panel;
import dk.simonvogensen.itodo.client.controller.Controller;
import dk.simonvogensen.itodo.client.view.ITodoView;

public class ViewMock implements ITodoView {
    private Controller controller;

    public int getLineCount() {
        return 0;
    }

    public int getLineOfCursor() {
        return 0;
    }

    public String getSelectedTodoItemText() {
        return controller.getSelectedTodoItem().getText();
    }

    public void showAlert(String text) {
    }

    public void updateButtonStates(boolean enabled,
                                   boolean enablePreviousButton, boolean enableSaveButton,
                                   boolean enableDeleteButton) {
    }

    public void updateView() {
    }

    public void unfocus() {
    }

    public Panel getMainPanel() {
        return null;
    }

    public void init() {
    }

    public void setController(Controller controller) {
        this.controller = controller;
    }

    public void refreshAxedArea() {
    }

    public boolean hasOpenDialogs() {
        return false;
    }

    public void closeDialogs() {
    }

    public void setAxedAreaFocus(boolean b) {
    }

    public void openWorktimeDialog() {
    }

    public void setTagsFocus(boolean focus) {
    }

    public void openConfigDialog() {
    }

    public void updateProjectIdsAndTransportTypes() {
    }
}